'use strict'

const Controller = require('egg').Controller

class MysqlController extends Controller {
  async login() {
    const { ctx } = this
    const resBody = await ctx.service.mysql.login(ctx.request.body)
    ctx.body = resBody
  }
  async getChatUserList() {
    const { ctx } = this
    const resBody = await ctx.service.mysql.getChatUserList()
    this.ctx.body = resBody
  }
}

module.exports = MysqlController
